Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[exporter/dynatrace] Do not mutate the original metrics #16506

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Nov 28, 2022

The Map.Sort() call mutates the original pdata map which can lead to subtle bugs similar to #16499 given that the exporter is marked as not mutating

@dmitryax dmitryax requested a review from a team November 28, 2022 22:24
@github-actions github-actions bot requested a review from dyladan November 28, 2022 22:25
@dmitryax dmitryax force-pushed the dynatrace-no-mutate branch 2 times, most recently from 1437f15 to 2453209 Compare November 28, 2022 22:50
The  `Map.Sort()` call mutates the original data which can lead to subtle bugs given that the exporter marked as not mutating
@dmitryax dmitryax force-pushed the dynatrace-no-mutate branch from 3549140 to bc169d4 Compare November 28, 2022 23:21
@bogdandrutu bogdandrutu merged commit b4e6574 into open-telemetry:main Nov 29, 2022
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
…ry#16506)

The  `Map.Sort()` call mutates the original data which can lead to subtle bugs given that the exporter marked as not mutating
@dmitryax dmitryax deleted the dynatrace-no-mutate branch December 10, 2022 07:32
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants